package com.alinesno.cloud.busines.shop.manage;

import com.alinesno.cloud.common.core.auto.EnableRpc;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;

// import com.alinesno.cloud.common.core.auto.EnableRpc;
import com.alinesno.cloud.rest.gateway.adapter.enable.EnableApi;

/**
 * 启动入口
 *
 * @author ${author} ${authorEmail}
 * @since 2020-12-08 10:12:366
 */
// @EnableRpc
@EnableRpc
@EnableApi
@EnableAutoConfiguration
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)  // 不需要加载数据库时
// @SpringBootApplication // 需要加载数据库时
 @MapperScan("com.alinesno.cloud.busines.shop.manage.mapper")
@ComponentScan(basePackages = {"com.alinesno.cloud.busines.shop.manage"})
public class Application {

	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}

}

